
package demo

import "fmt"

func TestVar() {
	// 变量声明
	var name string = "Go"
	age := 25

	// 常量声明
	const pi float64 = 3.14

	fmt.Println("Name:", name)
	fmt.Println("Age:", age)
	fmt.Println("Pi:", pi)
}
